/*
 * grav.h
 *
 *  Created on: Mar 24, 2012
 *      Author: Stephen
 */

#ifndef GRAV_H_
#define GRAV_H_

typedef struct c_rect {
	double x;
	double y;
} rect;

class Obj
{
private:
	rect pos,vel,acc;
	double time;
public:
	Obj(double posx, double posy);
	Obj(double posx, double posy, double velx, double vely, double accx, double accy);
	Obj(double posx, double posy, double time);
	Obj(double posx, double posy, double velx, double vely, double accx, double accy, double time);
	rect position();
	rect velocity();
	rect acceleration();
	void settime(double time);
	double gettime();
	rect update();
	rect update(double time);
	void veloc(double x, double y);
	void velocx(double x);
	void velocy(double y);
	void accel(double x, double y);
	void accelx(double x);
	void accely(double y);
};


#endif /* GRAV_H_ */
